package com.quanshu.exchange.support.entity.tmp;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Created by jye on 2018/1/4.
 */

public class AreaData implements IPickerViewData {
    /**
     * area_id : 110000
     * area_name : 北京市
     * area_list : [{"area_id":"110100","area_name":"市辖区","area_list":[{"area_id":"110101","area_name":"东城区"},{"area_id":"110102","area_name":"西城区"},{"area_id":"110103","area_name":"崇文区"},{"area_id":"110104","area_name":"宣武区"},{"area_id":"110105","area_name":"朝阳区"},{"area_id":"110106","area_name":"丰台区"},{"area_id":"110107","area_name":"石景山区"},{"area_id":"110108","area_name":"海淀区"},{"area_id":"110109","area_name":"门头沟区"},{"area_id":"110111","area_name":"房山区"},{"area_id":"110112","area_name":"通州区"},{"area_id":"110113","area_name":"顺义区"},{"area_id":"110114","area_name":"昌平区"},{"area_id":"110115","area_name":"大兴区"},{"area_id":"110116","area_name":"怀柔区"},{"area_id":"110117","area_name":"平谷区"}]},{"area_id":"110200","area_name":"县","area_list":[{"area_id":"110228","area_name":"密云县"},{"area_id":"110229","area_name":"延庆县"}]}]
     */

    private String area_id;
    private String area_name;
    private List<AreaData> area_list;

    public String getArea_id() {
        return area_id;
    }

    public void setArea_id(String area_id) {
        this.area_id = area_id;
    }

    public String getArea_name() {
        return area_name;
    }

    public void setArea_name(String area_name) {
        this.area_name = area_name;
    }

    public List<AreaData> getArea_list() {
        return area_list;
    }

    public void setArea_list(List<AreaData> area_list) {
        this.area_list = area_list;
    }

    @Override
    public String getPickerViewText() {
        return this.area_name;
    }

    public String getPickerViewCode() {
        return this.area_id;
    }

}
